<%@page import="helpers.UrlHelper"%>
<%@page import="java.util.TreeMap"%>
<%
String name = (String) request.getAttribute("name");
String statusCode = (String) request.getAttribute("statusCode");

//Set seo content
String title = "Check Adsense Sandbox";
String description = "You can use this tool to determine if a domain is banned in the AdSense program. Put the website URL in the input box and if you see no ads, Google may have disabled ad-serving for that domain.";
String url = UrlHelper.getServerUrl(request) + "/tool/adsense-sandbox";
%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

			<div class="row-fluid">
            
            	<!-- tool detail
        		================================================== -->
            	<div class="span8">
                	<h3 class="toolName">Check Adsense Sandbox</h3>
                    <p class="toolDesc">You can use this tool to determine if a domain is banned in the AdSense program. Put the website URL in the input box and if you see no ads, Google may have disabled ad-serving for that domain.</p>
                    
                    <!-- form check
        			================================================== -->
                    <form method="get" action="" class="form-inline">
                    	<input type="text" placeholder="enter your domain name" class="input-xlarge"  value="<%=name != null ? name : "" %>" name="domain" />
                        <button type="submit" class="btn btn-info">check adsense sandbox</button>
                    </form>
                    
                    <!-- result
        			================================================== -->
       				<% if (name != null && statusCode != null && statusCode.equalsIgnoreCase("200")) { %>
                    <div class="toolResult">
                    	<h4>Check Adsense Sandbox : <%=name %></h4>
                        <hr />
                    	Status: Ok
                    	<div class="info content-left">
                    		<iframe height="250" width="250" src="http://pagead2.googlesyndication.com/pagead/ads?adtest=on&client=ca-digitalinspiration&random=1336472245&url=<%=name %>&gl=default&color_border=336699&color_bg=FFFFFF&ad_type=image&format=250x250_as"></iframe>
					    </div>
                    </div>
                    <% } else if (name != null) { %>
                    <div class="toolResult">
                    	<h4>Check Adsense Sandbox : <%=name %></h4>
                    	<hr />
                    	This domain <%=name %> has been disabled adsense.
                    </div>
                    <% } %>
                </div>                
                
                <jsp:include page="/elements/right.jsp" />
                
            </div>


<jsp:include page="/layouts/footer.jsp" />